/**
 * Copyright © 2009 Qasky. All rights reserved.
 *
 * 仪器状态管理
 *
 * @author Wang Hongya
 * @version 0.0.0 2019/11/20
 *
 * History:
 * (author, date, desc)
 * (Wang Hongya, 20191120, 添加注释)
 */
const taskDetail = {
  state: {
      refreshTime:6000,
      getItemByDeviceCodeAll:[],
      showMainFlag:false,
      deviceTypeCode:''
  },
  mutations: {
      getItemByDeviceCode(state, arg) {
          state.getItemByDeviceCodeAll = arg;
      },
      getDeviceTypeCode(state, arg) {
          state.deviceTypeCode = arg;
      },
      //获取是否显示主要信息
      getShowMainFlag(state, arg) {
          state.showMainFlag = arg;
      },
  },
  actions: {
      setItemByDeviceCode({ commit }, arg) {
          commit('getItemByDeviceCode', arg)
      },
      setDeviceTypeCode({ commit }, arg) {
          commit('getDeviceTypeCode', arg)
      },
      setShowMainFlag({ commit }, arg) {
          commit('getShowMainFlag', arg)
      },
  }
};

export default taskDetail;
